home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-2.iso / Files II / Hyper / D / DataChef v1.3.sit / DataChef v1.3 / background_4125.xml < prev    next >
Encoding:
Extensible Markup Language  |  1992-11-22  |  13.9 KB  |  411 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>4125</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_4803.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3092.css" />
  11.     <part>
  12.         <id>3</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <true /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <false /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>40</left>
  23.             <top>113</top>
  24.             <right>468</right>
  25.             <bottom>294</bottom>
  26.         </rect>
  27.         <style>scrolling</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Geneva</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>bold</textStyle>
  39.         <textHeight>16</textHeight>
  40.         <name>Table of Contents</name>
  41.         <script>on mouseUp
  42. if the value of the clickLine is not empty then
  43. select the clickLine
  44. lock screen
  45. put the value of the clickLine into goChapter
  46. play flute C
  47. go cd goChapter
  48. unlock screen with visual effect wipe right
  49. end if
  50. end mouseUp</script>
  51.     </part>
  52.     <part>
  53.         <id>4</id>
  54.         <type>field</type>
  55.         <visible> <true /> </visible>
  56.         <dontWrap> <false /> </dontWrap>
  57.         <dontSearch> <true /> </dontSearch>
  58.         <sharedText> <false /> </sharedText>
  59.         <fixedLineHeight> <false /> </fixedLineHeight>
  60.         <autoTab> <false /> </autoTab>
  61.         <lockText> <true /> </lockText>
  62.         <rect>
  63.             <left>0</left>
  64.             <top>19</top>
  65.             <right>512</right>
  66.             <bottom>54</bottom>
  67.         </rect>
  68.         <style>transparent</style>
  69.         <autoSelect> <false /> </autoSelect>
  70.         <showLines> <false /> </showLines>
  71.         <wideMargins> <false /> </wideMargins>
  72.         <multipleLines> <false /> </multipleLines>
  73.         <reservedFamily> 0 </reservedFamily>
  74.         <titleWidth>0</titleWidth>
  75.         <icon>0</icon>
  76.         <textAlign>center</textAlign>
  77.         <font>Helvetica</font>
  78.         <textSize>20</textSize>
  79.         <textStyle>outline</textStyle>
  80.         <textStyle>italic</textStyle>
  81.         <textStyle>bold</textStyle>
  82.         <textHeight>26</textHeight>
  83.         <name>Book Title</name>
  84.         <script>on mouseUp
  85. put me into oldTitle
  86. ask "Enter your title:" with oldTitle
  87. if it is empty then
  88. put "Click Here To Enter Title" into me
  89. exit mouseUp
  90. end if
  91. put it into newTitle
  92. if number of chars of newTitle > 31 then
  93. answer "No more than 31 characters permitted!"
  94. exit mouseUp
  95. end if
  96. put newTitle into me
  97. end mouseUp</script>
  98.     </part>
  99.     <part>
  100.         <id>5</id>
  101.         <type>button</type>
  102.         <visible> <true /> </visible>
  103.         <reserved5> 0 </reserved5>
  104.         <reserved4> 0 </reserved4>
  105.         <reserved3> 0 </reserved3>
  106.         <reserved2> 0 </reserved2>
  107.         <reserved1> 0 </reserved1>
  108.         <enabled> <true /> </enabled>
  109.         <rect>
  110.             <left>15</left>
  111.             <top>73</top>
  112.             <right>65</right>
  113.             <bottom>88</bottom>
  114.         </rect>
  115.         <style>rectangle</style>
  116.         <showName> <true /> </showName>
  117.         <highlight> <false /> </highlight>
  118.         <autoHighlight> <true /> </autoHighlight>
  119.         <sharedHighlight> <true /> </sharedHighlight>
  120.         <family>0</family>
  121.         <titleWidth>0</titleWidth>
  122.         <icon>0</icon>
  123.         <textAlign>center</textAlign>
  124.         <font>Chicago</font>
  125.         <textSize>9</textSize>
  126.         <textStyle>bold</textStyle>
  127.         <name>Add</name>
  128.         <script>on mouseUp
  129. play "harpsichord" "e"
  130. global newChapter
  131. answer "Add recipe or chapter?" with "Chapter" or "Recipe" or "Abort"
  132. if it is "Chapter" then
  133. ask "Enter the chapter:"
  134. if it is empty then exit mouseUp
  135. if number of chars of it > 31 then
  136. answer "No more than 31 characters permitted!"
  137. exit mouseUp
  138. end if
  139. if first char of it is a number then
  140. answer "First character must be a letter!"
  141. exit mouseUp
  142. end if
  143. if it is not empty then
  144. set cursor to watch
  145. put it into newChapter
  146. repeat with x = 1 to number of lines of bg fld "Table of Contents"
  147. if line x of bg fld "Table of Contents" is newChapter then
  148. answer "A chapter" && newChapter && "already exists!"
  149. exit mouseUp
  150. end if
  151. end repeat
  152. if bg fld "Table of Contents" is empty then
  153. put newChapter into bg fld "Table of Contents"
  154. createChapterCard
  155. exit mouseUp
  156. end if
  157. if bg fld "Table of Contents" is not empty then
  158. repeat
  159. if last char of bg fld "Table of Contents" is return then ¬¨
  160. delete last char of bg fld "Table of Contents"
  161. if last char of bg fld "Table of Contents" is not return ¬¨
  162. then exit repeat
  163. end repeat
  164. put return & newChapter after bg fld "Table of Contents"
  165. createChapterCard
  166. end if
  167. end if
  168. end if
  169. if it is "Recipe" then
  170. if bg fld "Table of Contents" is empty then
  171. answer "No chapters yet!"
  172. exit mouseUp
  173. end if
  174. if bg fld "Table of Contents" is not empty then
  175. put bg fld "Table of Contents" into bg fld "Table of Contents" ¬¨
  176. of cd "Add Recipe"
  177. lock screen
  178. go cd "Add Recipe"
  179. end if
  180. end if
  181. end mouseUp
  182.  
  183. on createChapterCard
  184. global newChapter
  185. lock screen
  186. go cd "Chapter"
  187. doMenu "New Card"
  188. set the name of this card to newChapter
  189. put newChapter into bg fld "Chapter"
  190. go cd "Table of Contents"
  191. end createChapterCard
  192. </script>
  193.     </part>
  194.     <part>
  195.         <id>6</id>
  196.         <type>button</type>
  197.         <visible> <true /> </visible>
  198.         <reserved5> 0 </reserved5>
  199.         <reserved4> 0 </reserved4>
  200.         <reserved3> 0 </reserved3>
  201.         <reserved2> 0 </reserved2>
  202.         <reserved1> 0 </reserved1>
  203.         <enabled> <true /> </enabled>
  204.         <rect>
  205.             <left>15</left>
  206.             <top>92</top>
  207.             <right>65</right>
  208.             <bottom>107</bottom>
  209.         </rect>
  210.         <style>rectangle</style>
  211.         <showName> <true /> </showName>
  212.         <highlight> <false /> </highlight>
  213.         <autoHighlight> <true /> </autoHighlight>
  214.         <sharedHighlight> <true /> </sharedHighlight>
  215.         <family>0</family>
  216.         <titleWidth>0</titleWidth>
  217.         <icon>0</icon>
  218.         <textAlign>center</textAlign>
  219.         <font>Chicago</font>
  220.         <textSize>9</textSize>
  221.         <textStyle>bold</textStyle>
  222.         <name>Delete</name>
  223.         <script>on mouseUp
  224. play "harpsichord" "e"
  225. answer "Delete chapter or recipe?" with "Chapter" or "Recipe" or "Abort"
  226. if it is "Abort" then exit mouseUp
  227. if it is "Chapter" then
  228. -- answer "You will be deleting a CHAPTER with all of its recipes. Continue?" with ¬¨
  229. -- "Continue" or "Abort"
  230. -- if it is "Continue" then
  231. put bg fld "Table of Contents" into bg fld "Table of Contents" of cd "Delete Chapter"
  232. lock screen
  233. go cd "Delete Chapter"
  234. unlock screen
  235. -- end if
  236. end if
  237. if it is "Recipe" then
  238. put bg fld "Table of Contents" into bg fld "Table of Contents" of cd "Delete Recipe"
  239. lock screen
  240. go cd "Delete Recipe"
  241. end if
  242. end mouseUp</script>
  243.     </part>
  244.     <part>
  245.         <id>11</id>
  246.         <type>field</type>
  247.         <visible> <true /> </visible>
  248.         <dontWrap> <false /> </dontWrap>
  249.         <dontSearch> <true /> </dontSearch>
  250.         <sharedText> <true /> </sharedText>
  251.         <fixedLineHeight> <false /> </fixedLineHeight>
  252.         <autoTab> <false /> </autoTab>
  253.         <lockText> <true /> </lockText>
  254.         <rect>
  255.             <left>188</left>
  256.             <top>79</top>
  257.             <right>314</right>
  258.             <bottom>96</bottom>
  259.         </rect>
  260.         <style>transparent</style>
  261.         <autoSelect> <false /> </autoSelect>
  262.         <showLines> <false /> </showLines>
  263.         <wideMargins> <false /> </wideMargins>
  264.         <multipleLines> <false /> </multipleLines>
  265.         <reservedFamily> 0 </reservedFamily>
  266.         <titleWidth>0</titleWidth>
  267.         <icon>0</icon>
  268.         <textAlign>center</textAlign>
  269.         <font>Geneva</font>
  270.         <textSize>9</textSize>
  271.         <textStyle>outline</textStyle>
  272.         <textStyle>bold</textStyle>
  273.         <textHeight>12</textHeight>
  274.         <name></name>
  275.         <script></script>
  276.     </part>
  277.     <part>
  278.         <id>12</id>
  279.         <type>field</type>
  280.         <visible> <true /> </visible>
  281.         <dontWrap> <false /> </dontWrap>
  282.         <dontSearch> <true /> </dontSearch>
  283.         <sharedText> <true /> </sharedText>
  284.         <fixedLineHeight> <false /> </fixedLineHeight>
  285.         <autoTab> <false /> </autoTab>
  286.         <lockText> <true /> </lockText>
  287.         <rect>
  288.             <left>128</left>
  289.             <top>310</top>
  290.             <right>381</right>
  291.             <bottom>331</bottom>
  292.         </rect>
  293.         <style>transparent</style>
  294.         <autoSelect> <false /> </autoSelect>
  295.         <showLines> <false /> </showLines>
  296.         <wideMargins> <false /> </wideMargins>
  297.         <multipleLines> <false /> </multipleLines>
  298.         <reservedFamily> 0 </reservedFamily>
  299.         <titleWidth>0</titleWidth>
  300.         <icon>0</icon>
  301.         <textAlign>center</textAlign>
  302.         <font>Geneva</font>
  303.         <textSize>9</textSize>
  304.         <textStyle>outline</textStyle>
  305.         <textStyle>bold</textStyle>
  306.         <textHeight>12</textHeight>
  307.         <name></name>
  308.         <script></script>
  309.     </part>
  310.     <part>
  311.         <id>13</id>
  312.         <type>button</type>
  313.         <visible> <true /> </visible>
  314.         <reserved5> 0 </reserved5>
  315.         <reserved4> 0 </reserved4>
  316.         <reserved3> 0 </reserved3>
  317.         <reserved2> 0 </reserved2>
  318.         <reserved1> 0 </reserved1>
  319.         <enabled> <true /> </enabled>
  320.         <rect>
  321.             <left>80</left>
  322.             <top>73</top>
  323.             <right>130</right>
  324.             <bottom>88</bottom>
  325.         </rect>
  326.         <style>rectangle</style>
  327.         <showName> <true /> </showName>
  328.         <highlight> <false /> </highlight>
  329.         <autoHighlight> <true /> </autoHighlight>
  330.         <sharedHighlight> <true /> </sharedHighlight>
  331.         <family>0</family>
  332.         <titleWidth>0</titleWidth>
  333.         <icon>0</icon>
  334.         <textAlign>center</textAlign>
  335.         <font>Chicago</font>
  336.         <textSize>9</textSize>
  337.         <textStyle>bold</textStyle>
  338.         <name>Arrange</name>
  339.         <script>on mouseUp
  340. play "harpsichord" "e"
  341. if number of lines of bg fld "Table of Contents" < 2 then
  342. answer "Not enough chapters to arrange!"
  343. exit mouseUp
  344. end if
  345. lock screen
  346. put bg fld "Table of Contents" into bg fld "Table of Contents" of cd "Arrange TOC"
  347. go cd "Arrange TOC"
  348. end mouseUp</script>
  349.     </part>
  350.     <part>
  351.         <id>17</id>
  352.         <type>button</type>
  353.         <visible> <true /> </visible>
  354.         <reserved5> 0 </reserved5>
  355.         <reserved4> 0 </reserved4>
  356.         <reserved3> 0 </reserved3>
  357.         <reserved2> 0 </reserved2>
  358.         <reserved1> 0 </reserved1>
  359.         <enabled> <true /> </enabled>
  360.         <rect>
  361.             <left>80</left>
  362.             <top>92</top>
  363.             <right>130</right>
  364.             <bottom>107</bottom>
  365.         </rect>
  366.         <style>rectangle</style>
  367.         <showName> <true /> </showName>
  368.         <highlight> <false /> </highlight>
  369.         <autoHighlight> <true /> </autoHighlight>
  370.         <sharedHighlight> <true /> </sharedHighlight>
  371.         <family>0</family>
  372.         <titleWidth>0</titleWidth>
  373.         <icon>0</icon>
  374.         <textAlign>center</textAlign>
  375.         <font>Chicago</font>
  376.         <textSize>9</textSize>
  377.         <textStyle>bold</textStyle>
  378.         <name>Sort</name>
  379.         <script>on mouseUp
  380. sort bg fld "Table of Contents" ascending international
  381. end mouseUp</script>
  382.     </part>
  383.     <part>
  384.         <id>18</id>
  385.         <type>field</type>
  386.         <visible> <false /> </visible>
  387.         <dontWrap> <false /> </dontWrap>
  388.         <dontSearch> <false /> </dontSearch>
  389.         <sharedText> <true /> </sharedText>
  390.         <fixedLineHeight> <false /> </fixedLineHeight>
  391.         <autoTab> <false /> </autoTab>
  392.         <lockText> <false /> </lockText>
  393.         <rect>
  394.             <left>315</left>
  395.             <top>58</top>
  396.             <right>384</right>
  397.             <bottom>93</bottom>
  398.         </rect>
  399.         <style>transparent</style>
  400.         <autoSelect> <false /> </autoSelect>
  401.         <showLines> <false /> </showLines>
  402.         <wideMargins> <false /> </wideMargins>
  403.         <multipleLines> <false /> </multipleLines>
  404.         <reservedFamily> 0 </reservedFamily>
  405.         <titleWidth>0</titleWidth>
  406.         <icon>0</icon>
  407.         <textAlign>center</textAlign>
  408.         <font>Geneva</font>
  409.         <textSize>9</textSize>
  410.         <textStyle>outline</textStyle>
  411.         <textStyle>bold</textStyle>
  412.         <textHeight>12</textHeight>
  413.         <name>Easter Egg Field</name>
  414.         <script></script>
  415.     </part>
  416.     <part>
  417.         <id>19</id>
  418.         <type>button</type>
  419.         <visible> <true /> </visible>
  420.         <reserved5> 0 </reserved5>
  421.         <reserved4> 0 </reserved4>
  422.         <reserved3> 0 </reserved3>
  423.         <reserved2> 0 </reserved2>
  424.         <reserved1> 0 </reserved1>
  425.         <enabled> <true /> </enabled>
  426.         <rect>
  427.             <left>419</left>
  428.             <top>44</top>
  429.             <right>475</right>
  430.             <bottom>90</bottom>
  431.         </rect>
  432.         <style>transparent</style>
  433.         <showName> <false /> </showName>
  434.         <highlight> <false /> </highlight>
  435.         <autoHighlight> <false /> </autoHighlight>
  436.         <sharedHighlight> <true /> </sharedHighlight>
  437.         <family>0</family>
  438.         <titleWidth>0</titleWidth>
  439.         <icon>0</icon>
  440.         <textAlign>center</textAlign>
  441.         <font>Chicago</font>
  442.         <textSize>12</textSize>
  443.         <textStyle>plain</textStyle>
  444.         <name>Easter Egg Button</name>
  445.         <script>on mouseEnter
  446. show bg fld "Easter Egg Field"
  447. end mouseEnter
  448.  
  449. on mouseLeave
  450. hide bg fld "Easter Egg Field"
  451. end mouseLeave</script>
  452.     </part>
  453.     <part>
  454.         <id>20</id>
  455.         <type>button</type>
  456.         <visible> <true /> </visible>
  457.         <reserved5> 0 </reserved5>
  458.         <reserved4> 0 </reserved4>
  459.         <reserved3> 0 </reserved3>
  460.         <reserved2> 0 </reserved2>
  461.         <reserved1> 0 </reserved1>
  462.         <enabled> <true /> </enabled>
  463.         <rect>
  464.             <left>419</left>
  465.             <top>44</top>
  466.             <right>475</right>
  467.             <bottom>90</bottom>
  468.         </rect>
  469.         <style>transparent</style>
  470.         <showName> <false /> </showName>
  471.         <highlight> <false /> </highlight>
  472.         <autoHighlight> <false /> </autoHighlight>
  473.         <sharedHighlight> <true /> </sharedHighlight>
  474.         <family>0</family>
  475.         <titleWidth>0</titleWidth>
  476.         <icon>0</icon>
  477.         <textAlign>center</textAlign>
  478.         <font>Chicago</font>
  479.         <textSize>12</textSize>
  480.         <textStyle>plain</textStyle>
  481.         <name>Easter Egg Button</name>
  482.         <script>on mouseEnter
  483. show bg fld "Easter Egg Field"
  484. end mouseEnter
  485.  
  486. on mouseLeave
  487. hide bg fld "Easter Egg Field"
  488. end mouseLeave</script>
  489.     </part>
  490.     <part>
  491.         <id>21</id>
  492.         <type>button</type>
  493.         <visible> <true /> </visible>
  494.         <reserved5> 0 </reserved5>
  495.         <reserved4> 0 </reserved4>
  496.         <reserved3> 0 </reserved3>
  497.         <reserved2> 0 </reserved2>
  498.         <reserved1> 0 </reserved1>
  499.         <enabled> <true /> </enabled>
  500.         <rect>
  501.             <left>15</left>
  502.             <top>300</top>
  503.             <right>65</right>
  504.             <bottom>315</bottom>
  505.         </rect>
  506.         <style>rectangle</style>
  507.         <showName> <true /> </showName>
  508.         <highlight> <false /> </highlight>
  509.         <autoHighlight> <true /> </autoHighlight>
  510.         <sharedHighlight> <true /> </sharedHighlight>
  511.         <family>0</family>
  512.         <titleWidth>0</titleWidth>
  513.         <icon>0</icon>
  514.         <textAlign>center</textAlign>
  515.         <font>Chicago</font>
  516.         <textSize>9</textSize>
  517.         <textStyle>bold</textStyle>
  518.         <name>Find</name>
  519.         <script>on mouseUp
  520. global buttonName
  521. put "Table of Contents" into buttonName
  522. play "harpsichord" "e"
  523. doMenu "Find..."
  524. end mouseUp</script>
  525.     </part>
  526.     <content>
  527.         <layer>background</layer>
  528.         <id>11</id>
  529.         <text>Table of Contents</text>
  530.     </content>
  531.     <content>
  532.         <layer>background</layer>
  533.         <id>12</id>
  534.         <text>Select Chapter Above To Navigate</text>
  535.     </content>
  536.     <content>
  537.         <layer>background</layer>
  538.         <id>18</id>
  539.         <text>Bon
  540. appétit!</text>
  541.     </content>
  542.     <name></name>
  543.     <script></script>
  544. </background>
  545.